package com.cyzy.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import java.util.List;
import java.util.Map;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("trip_order")
public class TripOrder {
  @TableId(type = IdType.ASSIGN_ID)
  @JsonSerialize(using = ToStringSerializer.class)
  private Long orderId;
  private long passengerId;
  private long driverId;
  private String startAddress;
  private long startLat;
  private long startLng;
  private String endAddress;
  private long endLat;
  private long endLng;
  private long orderStatus;
  private java.sql.Timestamp createTime;
  private java.sql.Timestamp completeTime;
  private double price;
  private long orderState;
  private String carTypes;
  private String carPrices;
  private String remark;
  @TableField(exist = false)
  private Map<String,Double> carPrice;
  @TableField(exist = false)
  private List<Integer> carType;
}
